import QtQuick
import QtQuick3D
/*
代表一场游戏概念本身
*/
GameInstanceBase{

    QtObject{
        id:d

        property list<View3D> views

        Component.onDestruction: {
            for(var i in views)
            {
                views[i].destory()
            }
        }

    }

    //创建一个视图,游戏销毁后自动销毁视图
    function newView(viewComp,param = {}){
        var ret = viewComp.createObject(null,param)
        d.views.push(ret)
        return ret
    }


}
